package com.un.ebs.inventory.service;

import com.un.ebs.inventory.dto.*;
import com.un.ebs.inventory.domain.*;

import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * <p>
 * 仓库 服务类
 * </p>
 *
 * @author liubo
 * @since 2020-05-24
 */
public interface WarehouseService {

    void add(WarehouseAddDto req);

    void update(WarehouseUpdateDto req);

    void changeParent(String id, String parentId);

    List<Warehouse> queryByParentId(String parentId);

    IPage<Warehouse> queryPageByParentId(String parentId, int pageSize, int pageIndex);

    void delete(String id);

    Warehouse queryById(String id);

    IPage<Warehouse> query(String searchText, String parentId, Integer pageSize, Integer pageIndex);

    List<Warehouse> queryMatierial();

    List<Warehouse> queryProduct();

}
